//************************************************ 
//  *Author：jxx
//  *QQ：283591387
//  *代码由框架生成,任何更改都可能导致被代码生成器覆盖
//  *业务请在q_operations.js中编写
//************************************************ 
export default function() {
	return {
		editFormFields: {"Remark":"","Voucher_sub":"","Operations_contract_sub":"","Client_name":"","Site":"","Operations_project":"","Aftersale_content":"","Image":"","PingTaiImage":"","WeiXiuImage":"","JiDuImage":"","Attachment":""},
		editFormOptions: [{"title":"单据编码","field":"Voucher_sub","disabled":true,"type":"text"},
                               {"title":"运维合同","required":true,"field":"Operations_contract_sub","type":"text"},
                               {"key":"审核通过客户","data":[],"title":"客户名称","required":true,"field":"Client_name","disabled":true,"type":"select"},
                               {"type":"group"},
                               {"title":"站点名称","required":true,"field":"Site","disabled":true,"type":"text"},
                               {"key":"Operations_project","data":[],"title":"运维项目","required":true,"field":"Operations_project","type":"select"},
                               {"title":"服务内容","required":true,"field":"Aftersale_content","type":"textarea"},
                               {"type":"group"},
                               {"title":"站房内图片","field":"Image","type":"img"},
                               {"title":"平台设备图片","field":"PingTaiImage","type":"img"},
                               {"title":"维修及更换配件图片","field":"WeiXiuImage","type":"img"},
                               {"type":"group"},
                               {"title":"季度效验图片","field":"JiDuImage","type":"img"},
                               {"title":"附件","field":"Attachment","type":"file"},
                               {"type":"group"},
                               {"title":"备注","field":"Remark"}],
		searchFormFields: {"Voucher_sub":"","Operations_contract_sub":"","Client_name":"","Site":"","Operations_project":"","Aftersale_content":"","AuditStatus":""},
		searchFormOptions: [{"key":"审核通过客户","data":[],"title":"客户名称","field":"Client_name"},{"title":"服务内容","field":"Aftersale_content","type":"like"},{"type":"group"},{"title":"单据编码","field":"Voucher_sub","type":"like"},{"title":"运维合同","field":"Operations_contract_sub","type":"like"},{"title":"站点名称","field":"Site","type":"like"},{"type":"group"},{"key":"Operations_project","data":[],"title":"运维项目","field":"Operations_project","type":"select"},{"key":"audit","data":[],"title":"审核状态","field":"AuditStatus","type":"select"}],
		columns: [{field:'Voucher_sub',title:'单据编码',type:'string',link:true,readonly:true},
                       {field:'Operations_contract_sub',title:'运维合同',type:'string'},
                       {field:'Client_name',title:'客户名称',type:'string',bind:{ key:'审核通过客户',data:[]},readonly:true},
                       {field:'Site',title:'站点名称',type:'string',readonly:true},
                       {field:'Operations_project',title:'运维项目',type:'int',bind:{ key:'Operations_project',data:[]}},
                       {field:'Aftersale_content',title:'服务内容',type:'string'},
                       {field:'Image',title:'站房内图片',type:'img'},
                       {field:'PingTaiImage',title:'平台设备图片',type:'img'},
                       {field:'WeiXiuImage',title:'维修及更换配件图片',type:'img'},
                       {field:'JiDuImage',title:'季度效验图片',type:'img'},
                       {field:'Attachment',title:'附件',type:'file'},
                       {field:'AuditStatus',title:'审核状态',type:'int',bind:{ key:'audit',data:[]}},
                       {field:'Remark',title:'备注',type:'string'}],
		table: {
			key: 'Operations',
			footer: "Foots",
			cnName: '运维服务单',
			name: 'q_operations',
			url: "/q_operations/",
			sortName: "Voucher_sub"
		}
	}
}
